08. Run Some Code!
Run Some Code!
Now that everything is installed, let's make sure it's working!
- Clone and navigate to the starter kit test repository.
# NOTE: This is DIFFERENT from https://github.com/udacity/CarND-Term1-Starter-Kit.git
git clone https://github.com/udacity/CarND-Term1-Starter-Kit-Test.git
cd CarND-Term1-Starter-Kit-Test
- Launch the Jupyter notebook with Anaconda or Docker. This notebook is simply to make sure the installed packages are working properly. The instructions for the first project are on the next page.
# Anaconda
source activate carnd-term1 # If currently deactivated, i.e. start of a new terminal session
jupyter notebook test.ipynb
# Docker
docker run -it --rm -p 8888:8888 -v ${pwd}:/src udacity/carnd-term1-starter-kit test.ipynb
# OR
docker run -it --rm -p 8888:8888 -v `pwd`:/src udacity/carnd-term1-starter-kit test.ipynb
- Go to
http://localhost:8888/notebooks/test.ipynbin your browser and run all the cells. Everything should execute without error.
Troubleshooting
ffmpeg
NOTE: If you don't have ffmpeg installed on your computer you'll have to install it for moviepy to work. If this is the case you'll be prompted by an error in the notebook. You can easily install ffmpeg by running the following in a code cell in the notebook.
import imageio
imageio.plugins.ffmpeg.download()
Once it's installed, moviepy should work.
Docker
To get the latest version of the docker image, you may need to run:
docker pull udacity/carnd-term1-starter-kit
Warning! The image is ~2GB!